﻿package com.teaphy.coroutinecrawler.exception

import kotlinx.coroutines.*

fun main() = runBlocking {

    println("runBlocking start")

    launch {
        launch(CoroutineName("A")) {
            println("CoroutineA")
            delay(1000)
            throw Exception("E")
        }

        launch(CoroutineName("B")) {
            delay(3000)
            println("Coroutine B end")
        }
    }

    println("runBlocking end")
}